from flask import session
#集成管理器脚本
from flask_script import Manager
# 数据库迁移的拓展
from flask_migrate import Migrate, MigrateCommand
from info import create_app,db

app=create_app('deve')
# 使用管理器对象
manage=Manager(app)

Migrate(app,db)
manage.add_command('db',MigrateCommand)


@app.route('/')
def index():
    session['itcast']='2019'
    return 'hello world'


if __name__ == '__main__':
    manage.run()
    # app.run(debug=True)
